<template>
  <div>
    <!-- <h1>设备管理</h1> -->
    <div class="right">
      <div class="right-banner">
        <div class="right-content">
          <h1 class="h1">联动设备管理</h1>
          <div class="text">
            <div class="from" style="height:40px">
              <div>
                 <el-form ref="form" :model="form" >
                <el-form-item label="设备名称">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
              <div>
                 <el-form ref="form" :model="form">
                <el-form-item label="设备名称">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
            </div>
            <div class="from" style="height:40px">
              <div>
                 <el-form ref="form" :model="form" >
                <el-form-item label=" 互联ip">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
              <div>
                 <el-form ref="form" :model="form">
                <el-form-item label=" 互联ip">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
            </div>
             <div class="from" style="height:40px">
              <div>
                 <el-form ref="form" :model="form" >
                <el-form-item label="互联接口">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
              <div>
                 <el-form ref="form" :model="form">
                <el-form-item label="互联接口">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
            </div>
             <div class="from" style="height:40px">
              <div>
                 <el-form ref="form" :model="form" >
                <el-form-item label="描述信息">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
              <div>
                 <el-form ref="form" :model="form">
                <el-form-item label="描述信息">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-form>
              </div>
            </div>
            <el-button type="primary" class="btn">保存</el-button>
          </div>
        </div>
      </div>
    </div>

    <div class="right">
      <div class="right-banner">
        <div class="right-content">
          <h1 class="h1">设备管理信息</h1>
         <el-table :data="tableData" style="width: 92%" class="table">
            <el-table-column label="对接设备信息" width ="150"  align='center'>
                <el-table-column prop="province" label="设备名称" width="120" height=60>
                </el-table-column>
                <el-table-column prop="city" label="IP地址" width="120">
                </el-table-column>
                <el-table-column prop="address" label="接口信息"> </el-table-column>
                <el-table-column prop="zip" label="描述信息" width="120">
                </el-table-column>
            </el-table-column>
            <el-table-column label="威胁感知设备信息" align='center'>
              <el-table-column prop="province" label="威胁感知系统IP" width="120">
                </el-table-column>
                <el-table-column prop="city" label="威胁感知系统端口" width="140">
                </el-table-column>
                <el-table-column prop="address" label="描述信息"> </el-table-column>
                
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
      return {
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        },
        tableData: [
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: "",
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
        {
          date: "",
          name: "",
          province: "",
          city: "",
          address: "",
          zip: '',
        },
      ],
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
};
</script>
<style lang="less" scoped>
p,
h1,
h2,
h3,
h4,
h5,
span {
  padding: 0;
  margin: 0;
}
.right {
  height: 400px;
  background-color: white;
  float: right;
  padding-right:25px ;
}
.right .right-content {
  height: 40%;
}
.right-banner {
  width: 870px;
  height: 827px;
  /* background-color: brown; */
  margin: 0 auto;
}
.right-banner h1 {
  position: relative;
  padding: 0;
  margin: 0;
  height: 27px;
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
  margin-top: 30px;
  padding-left: 20px;
}
.h1::after {
  position: absolute;
  left: 0;
  content: "";
  width: 8px;
  height: 28px;
  background-color: #15c87a;
}
.right-banner .text {
  width: 870px;
  // height: 110px;
  /* background-color: chartreuse; */
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.right-banner .text div {
  width: 100%;
}
.btn {
  margin-top: 20px;
}
.right-banner .text div input {
  font-size: 16px;
  border: oldlace;
  outline: none;
  width: 90%;
  height: 40px;
  line-height: 1;
  border: 1px solid #ebebeb;
}
.right-banner .text div:nth-child(3) input {
  font-size: 16px;
  border: oldlace;
  outline: none;
  width: 99%;
  height: 40px;
  line-height: 1;
  border: 1px solid #ebebeb;
}
.right-banner .text div p {
  font-size: 16px;
  margin-bottom: 4px;
}
.add {
  width: 870px;
  height: 70px;
  /* background-color: violet; */
  margin-top: 10px;
}
.add p {
  font-size: 16px;
  margin-bottom: 5px;
}
.add input {
  font-size: 16px;
  border: 1px solid #ebebeb;
  outline: none;
  width: 95%;
  height: 40px;
  line-height: 1;
}



.from {
  display: flex;
  margin-top: 20px;
}
.from div {
  width: 48%;
}
.table {
  margin-top: 40px;
}
</style>